use c10p02_generic::{NewsArticle, Pic, Summary};

fn main() {
    let article = NewsArticle {
        headline: "woyuditan".to_string(),
        location: "location".to_string(),
        author: "shitiesheng".to_string(),
        content: "content".to_string(),
    };
    println!("{}...", article.summarize());

    let p1 = Pic{
        path: "path".to_string(),
        uploader: "jinghua.wang".to_string(),
        size: 20
    };
    println!("{}", p1.summarize());

}
